package com.mowh.gof23.structural.patterns.adapter.inherit;

/**
 * @author mowh1gd
 * @create 2023/10/7 15:51
 */
public class Banner {
    private final String name;

    public Banner(String name) {
        this.name = name;
    }

    public void showWithParentheses() {
        System.out.println("(" + this.name + ")");
    }
    public void showWithAsterisk() {
        System.out.println("*" + this.name + "*");
    }
}
